import request from '@/utils/request';

export async function fakeAccountLogin(params) {
  return request('/api/login', {
    method: 'POST',
    data: params,
  });
}
export async function sMQcode(params) {
  return request('/api/sMQcode', {
    method: 'POST',
    data: params,
  });
}

export async function queryQcode(params) {
  return request('/api/queryQcode', {
    method: 'POST',
    data: params,
  });
}

export async function logout(token) {
  return request('/api/logout', {
    method: 'POST',
    headers: {
      'login-token': token,
    },
  });
}
export async function quickLogin(params) {
  return request('/api/quickLogin', {
    method: 'POST',
    data: params,
  });
}
export async function quickLoginCall(params) {
  return request('/api/quickLogin/callBack', {
    method: 'POST',
    data: params,
  });
}
export async function quickToken(params) {
  return request('/api/quickLogin/dynamicToken ', {
    method: 'POST',
    data: params,
  });
}

// export async function getFakeCaptcha(mobile) {
//   return request(`/api/login/captcha?mobile=${mobile}`);
// }
